<%--
  Created by IntelliJ IDEA.
  User: SWY
  Date: 2024/10/31
  Time: 11:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<body>

<%--<%--%>
<%--    pageContext.setAttribute("String","pageContext");--%>
<%--    request.setAttribute("String","request");--%>
<%--    session.setAttribute("String","session");--%>
<%--    application.setAttribute("String","application");--%>
<%--%>--%>
<jsp:forward page="demo1.jsp"></jsp:forward>
<table>
    <tr>
        <td>pageContext值:</td>
        <td><%= pageContext.getAttribute("String")%></td>
    </tr>
    <tr>
        <td>request值:</td>
        <td><%= request.getAttribute("String")%></td>
    </tr>
    <tr>
        <td>session值:</td>
        <td><%= session.getAttribute("String")%></td>
    </tr>
    <tr>
        <td>application值:</td>
        <td><%= application.getAttribute("String")%></td>
    </tr>
</table>

<%--<% out.println("out输出");--%>
<%--  out.flush();--%>
<%--%>--%>

<%--<% response.getWriter().println("response输出");%>--%>
</body>
</html>